xref: /dflybsd-src/share/i18n/csmapper/APPLE/THAI%UCS.src (revision 88cb131568c551d47f7b04eea6931bff5663ba43)
1*52347f71SHasso Tepper# $NetBSD: THAI%UCS.src,v 1.1 2006/03/13 19:45:36 tnozaki Exp $
2*52347f71SHasso Tepper
3*52347f71SHasso TepperTYPE		ROWCOL
4*52347f71SHasso TepperNAME		THAI/UCS
5*52347f71SHasso TepperSRC_ZONE	0x00-0xFF
6*52347f71SHasso TepperOOB_MODE	ILSEQ
7*52347f71SHasso TepperDST_ILSEQ	0xFFFE
8*52347f71SHasso TepperDST_UNIT_BITS	16
9*52347f71SHasso Tepper
10*52347f71SHasso TepperBEGIN_MAP
11*52347f71SHasso Tepper#
12*52347f71SHasso Tepper# This mapping data is made from the mapping data provided by Unicode, Inc.
13*52347f71SHasso Tepper# Original notice:
14*52347f71SHasso Tepper#
15*52347f71SHasso Tepper#=======================================================================
16*52347f71SHasso Tepper#   File name:  THAI.TXT
17*52347f71SHasso Tepper#
18*52347f71SHasso Tepper#   Contents:   Map (external version) from Mac OS Thai
19*52347f71SHasso Tepper#               character set to Unicode 3.2 and later.
20*52347f71SHasso Tepper#
21*52347f71SHasso Tepper#   Copyright:  (c) 1995-2002, 2005 by Apple Computer, Inc., all rights
22*52347f71SHasso Tepper#               reserved.
23*52347f71SHasso Tepper#
24*52347f71SHasso Tepper#   Contact:    charsets@apple.com
25*52347f71SHasso Tepper#
26*52347f71SHasso Tepper#   Changes:
27*52347f71SHasso Tepper#
28*52347f71SHasso Tepper#       c02  2005-Apr-05    Update header comments. Matches internal xml
29*52347f71SHasso Tepper#                           <c1.1> and Text Encoding Converter 2.0.
30*52347f71SHasso Tepper#      b3,c1 2002-Dec-19    Update mapping for 0xDB to use new Unicode
31*52347f71SHasso Tepper#                           3.2 WORD JOINER instead of ZWNBSP (BOM).
32*52347f71SHasso Tepper#                           Update URLs. Matches internal utom<b3>.
33*52347f71SHasso Tepper#       b02  1999-Sep-22    Update contact e-mail address. Matches
34*52347f71SHasso Tepper#                           internal utom<b1>, ufrm<b2>, and Text
35*52347f71SHasso Tepper#                           Encoding Converter version 1.5.
36*52347f71SHasso Tepper#       n07  1998-Feb-05    Update to match internal utom<n5>, ufrm<n13>
37*52347f71SHasso Tepper#                           and Text Encoding Converter version 1.3:
38*52347f71SHasso Tepper#                           Use standard Unicodes plus transcoding hints
39*52347f71SHasso Tepper#                           instead of single corporate characters; see
40*52347f71SHasso Tepper#                           details below. Also update header comments
41*52347f71SHasso Tepper#                           to new format.
42*52347f71SHasso Tepper#       n04  1995-Nov-17    First version (after fixing some typos).
43*52347f71SHasso Tepper#                           Matches internal ufrm<n6>.
44*52347f71SHasso Tepper#
45*52347f71SHasso Tepper# Standard header:
46*52347f71SHasso Tepper# ----------------
47*52347f71SHasso Tepper#
48*52347f71SHasso Tepper#   Apple, the Apple logo, and Macintosh are trademarks of Apple
49*52347f71SHasso Tepper#   Computer, Inc., registered in the United States and other countries.
50*52347f71SHasso Tepper#   Unicode is a trademark of Unicode Inc. For the sake of brevity,
51*52347f71SHasso Tepper#   throughout this document, "Macintosh" can be used to refer to
52*52347f71SHasso Tepper#   Macintosh computers and "Unicode" can be used to refer to the
53*52347f71SHasso Tepper#   Unicode standard.
54*52347f71SHasso Tepper#
55*52347f71SHasso Tepper#   Apple Computer, Inc. ("Apple") makes no warranty or representation,
56*52347f71SHasso Tepper#   either express or implied, with respect to this document and the
57*52347f71SHasso Tepper#   included data, its quality, accuracy, or fitness for a particular
58*52347f71SHasso Tepper#   purpose. In no event will Apple be liable for direct, indirect,
59*52347f71SHasso Tepper#   special, incidental, or consequential damages resulting from any
60*52347f71SHasso Tepper#   defect or inaccuracy in this document or the included data.
61*52347f71SHasso Tepper#
62*52347f71SHasso Tepper#   These mapping tables and character lists are subject to change.
63*52347f71SHasso Tepper#   The latest tables should be available from the following:
64*52347f71SHasso Tepper#
65*52347f71SHasso Tepper#   <http://www.unicode.org/Public/MAPPINGS/VENDORS/APPLE/>
66*52347f71SHasso Tepper#
67*52347f71SHasso Tepper#   For general information about Mac OS encodings and these mapping
68*52347f71SHasso Tepper#   tables, see the file "README.TXT".
69*52347f71SHasso Tepper#
70*52347f71SHasso Tepper# Format:
71*52347f71SHasso Tepper# -------
72*52347f71SHasso Tepper#
73*52347f71SHasso Tepper#   Three tab-separated columns;
74*52347f71SHasso Tepper#   '#' begins a comment which continues to the end of the line.
75*52347f71SHasso Tepper#     Column #1 is the Mac OS Thai code (in hex as 0xNN)
76*52347f71SHasso Tepper#     Column #2 is the corresponding Unicode or Unicode sequence
77*52347f71SHasso Tepper#       (in hex as 0xNNNN or 0xNNNN+0xNNNN).
78*52347f71SHasso Tepper#     Column #3 is a comment containing the Unicode name
79*52347f71SHasso Tepper#
80*52347f71SHasso Tepper#   The entries are in Mac OS Thai code order.
81*52347f71SHasso Tepper#
82*52347f71SHasso Tepper#   Some of these mappings require the use of corporate characters.
83*52347f71SHasso Tepper#   See the file "CORPCHAR.TXT" and notes below.
84*52347f71SHasso Tepper#
85*52347f71SHasso Tepper#   Control character mappings are not shown in this table, following
86*52347f71SHasso Tepper#   the conventions of the standard UTC mapping tables. However, the
87*52347f71SHasso Tepper#   Mac OS Thai character set uses the standard control characters at
88*52347f71SHasso Tepper#   0x00-0x1F and 0x7F.
89*52347f71SHasso Tepper#
90*52347f71SHasso Tepper# Notes on Mac OS Thai:
91*52347f71SHasso Tepper# ---------------------
92*52347f71SHasso Tepper#
93*52347f71SHasso Tepper#   This is a legacy Mac OS encoding; in the Mac OS X Carbon and Cocoa
94*52347f71SHasso Tepper#   environments, it is only supported via transcoding to and from
95*52347f71SHasso Tepper#   Unicode.
96*52347f71SHasso Tepper#
97*52347f71SHasso Tepper#   Codes 0xA1-0xDA and 0xDF-0xFB are the character set from Thai
98*52347f71SHasso Tepper#   standard TIS 620-2533, except that the following changes are
99*52347f71SHasso Tepper#   made:
100*52347f71SHasso Tepper#     0xEE is TRADE MARK SIGN (instead of THAI CHARACTER YAMAKKAN)
101*52347f71SHasso Tepper#     0xFA is REGISTERED SIGN (instead of THAI CHARACTER ANGKHANKHU)
102*52347f71SHasso Tepper#     0xFB is COPYRIGHT SIGN (instead of THAI CHARACTER KHOMUT)
103*52347f71SHasso Tepper#
104*52347f71SHasso Tepper#   Codes 0x80-0x82, 0x8D-0x8E, 0x91, 0x9D-0x9E, and 0xDB-0xDE are
105*52347f71SHasso Tepper#   various additional punctuation marks (e.g. curly quotes,
106*52347f71SHasso Tepper#   ellipsis), no-break space, and two special characters "word join"
107*52347f71SHasso Tepper#   and "word break".
108*52347f71SHasso Tepper#
109*52347f71SHasso Tepper#   Codes 0x83-0x8C, 0x8F, and 0x92-0x9C are for positional variants
110*52347f71SHasso Tepper#   of the upper vowels, tone marks, and other signs at 0xD1,
111*52347f71SHasso Tepper#   0xD4-0xD7, and 0xE7-0xED. The positional variants would normally
112*52347f71SHasso Tepper#   be considered presentation forms only and not characters. In most
113*52347f71SHasso Tepper#   cases they are not typed directly; they are selected automatically
114*52347f71SHasso Tepper#   at display time by the WorldScript software. However, using the
115*52347f71SHasso Tepper#   Thai-DTP keyboard, the presentation forms can in fact be typed
116*52347f71SHasso Tepper#   directly using dead keys. Thus they must be treated as real
117*52347f71SHasso Tepper#   characters in the Mac OS Thai encoding. They are mapped using
118*52347f71SHasso Tepper#   variant tags; see below.
119*52347f71SHasso Tepper#
120*52347f71SHasso Tepper#   Several code points are undefined and unused (they cannot be
121*52347f71SHasso Tepper#   typed using any of the Mac OS Thai keyboard layouts): 0x90, 0x9F,
122*52347f71SHasso Tepper#   0xFC-0xFE. These are not shown in the table below.
123*52347f71SHasso Tepper#
124*52347f71SHasso Tepper# Unicode mapping issues and notes:
125*52347f71SHasso Tepper# ---------------------------------
126*52347f71SHasso Tepper#
127*52347f71SHasso Tepper#   The goals in the Apple mappings provided here are:
128*52347f71SHasso Tepper#   - Ensure roundtrip mapping from every character in the Mac OS Thai
129*52347f71SHasso Tepper#   character set to Unicode and back
130*52347f71SHasso Tepper#   - Use standard Unicode characters as much as possible, to maximize
131*52347f71SHasso Tepper#   interchangeability of the resulting Unicode text. Whenever possible,
132*52347f71SHasso Tepper#   avoid having content carried by private-use characters.
133*52347f71SHasso Tepper#
134*52347f71SHasso Tepper#   To satisfy both goals, we use private use characters to mark variants
135*52347f71SHasso Tepper#   that are similar to a sequence of one or more standard Unicode
136*52347f71SHasso Tepper#   characters.
137*52347f71SHasso Tepper#
138*52347f71SHasso Tepper#   Apple has defined a block of 32 corporate characters as "transcoding
139*52347f71SHasso Tepper#   hints." These are used in combination with standard Unicode characters
140*52347f71SHasso Tepper#   to force them to be treated in a special way for mapping to other
141*52347f71SHasso Tepper#   encodings; they have no other effect. Sixteen of these transcoding
142*52347f71SHasso Tepper#   hints are "grouping hints" - they indicate that the next 2-4 Unicode
143*52347f71SHasso Tepper#   characters should be treated as a single entity for transcoding. The
144*52347f71SHasso Tepper#   other sixteen transcoding hints are "variant tags" - they are like
145*52347f71SHasso Tepper#   combining characters, and can follow a standard Unicode (or a sequence
146*52347f71SHasso Tepper#   consisting of a base character and other combining characters) to
147*52347f71SHasso Tepper#   cause it to be treated in a special way for transcoding. These always
148*52347f71SHasso Tepper#   terminate a combining-character sequence.
149*52347f71SHasso Tepper#
150*52347f71SHasso Tepper#   The transcoding coding hints used in this mapping table are four
151*52347f71SHasso Tepper#   variant tags in the range 0xF873-75. Since these are combined with
152*52347f71SHasso Tepper#   standard Unicode characters, some characters in the Mac OS Thai
153*52347f71SHasso Tepper#   character set map to a sequence of two Unicodes instead of a single
154*52347f71SHasso Tepper#   Unicode character. For example, the Mac OS Thai character at 0x83 is a
155*52347f71SHasso Tepper#   low-left positional variant of THAI CHARACTER MAI EK (the standard
156*52347f71SHasso Tepper#   mapping is for the abstract character at 0xE8). So 0x83 is mapped to
157*52347f71SHasso Tepper#   0x0E48 (THAI CHARACTER MAI EK) + 0xF875 (a variant tag).
158*52347f71SHasso Tepper#
159*52347f71SHasso Tepper# Details of mapping changes in each version:
160*52347f71SHasso Tepper# -------------------------------------------
161*52347f71SHasso Tepper#
162*52347f71SHasso Tepper#   Changes from version b02 to version b03/c01:
163*52347f71SHasso Tepper#
164*52347f71SHasso Tepper#   - Update mapping for 0xDB to use new Unicode 3.2 character U+2060
165*52347f71SHasso Tepper#     WORD JOINER instead of U+FEFF ZERO WIDTH NO-BREAK SPACE (BOM)
166*52347f71SHasso Tepper#
167*52347f71SHasso Tepper#   Changes from version n04 to version n07:
168*52347f71SHasso Tepper#
169*52347f71SHasso Tepper#   - Changed mappings of the positional variants to use standard
170*52347f71SHasso Tepper#   Unicodes + transcoding hint, instead of using single corporate
171*52347f71SHasso Tepper#   zone characters. This affected the mappings for the following:
172*52347f71SHasso Tepper#   0x83-08C, 0x8F, 0x92-0x9C
173*52347f71SHasso Tepper#
174*52347f71SHasso Tepper#   - Just comment out unused code points in the table, instead
175*52347f71SHasso Tepper#   of mapping them to U+FFFD.
176*52347f71SHasso Tepper#
177*52347f71SHasso Tepper##################
178*52347f71SHasso Tepper0x00 - 0x7E = 0x0000 -
179*52347f71SHasso Tepper0x80 = 0x00AB
180*52347f71SHasso Tepper0x81 = 0x00BB
181*52347f71SHasso Tepper0x82 = 0x2026
182*52347f71SHasso Tepper0x83 = 0x0E48
183*52347f71SHasso Tepper0x84 = 0x0E49
184*52347f71SHasso Tepper0x85 = 0x0E4A
185*52347f71SHasso Tepper0x86 = 0x0E4B
186*52347f71SHasso Tepper0x87 = 0x0E4C
187*52347f71SHasso Tepper0x88 = 0x0E48
188*52347f71SHasso Tepper0x89 = 0x0E49
189*52347f71SHasso Tepper0x8A = 0x0E4A
190*52347f71SHasso Tepper0x8B = 0x0E4B
191*52347f71SHasso Tepper0x8C = 0x0E4C
192*52347f71SHasso Tepper0x8D = 0x201C
193*52347f71SHasso Tepper0x8E = 0x201D
194*52347f71SHasso Tepper0x8F = 0x0E4D
195*52347f71SHasso Tepper0x91 = 0x2022
196*52347f71SHasso Tepper0x92 = 0x0E31
197*52347f71SHasso Tepper0x93 = 0x0E47
198*52347f71SHasso Tepper0x94 = 0x0E34
199*52347f71SHasso Tepper0x95 = 0x0E35
200*52347f71SHasso Tepper0x96 = 0x0E36
201*52347f71SHasso Tepper0x97 = 0x0E37
202*52347f71SHasso Tepper0x98 = 0x0E48
203*52347f71SHasso Tepper0x99 = 0x0E49
204*52347f71SHasso Tepper0x9A = 0x0E4A
205*52347f71SHasso Tepper0x9B = 0x0E4B
206*52347f71SHasso Tepper0x9C = 0x0E4C
207*52347f71SHasso Tepper0x9D = 0x2018
208*52347f71SHasso Tepper0x9E = 0x2019
209*52347f71SHasso Tepper0xA0 = 0x00A0
210*52347f71SHasso Tepper0xA1 = 0x0E01
211*52347f71SHasso Tepper0xA2 = 0x0E02
212*52347f71SHasso Tepper0xA3 = 0x0E03
213*52347f71SHasso Tepper0xA4 = 0x0E04
214*52347f71SHasso Tepper0xA5 = 0x0E05
215*52347f71SHasso Tepper0xA6 = 0x0E06
216*52347f71SHasso Tepper0xA7 = 0x0E07
217*52347f71SHasso Tepper0xA8 = 0x0E08
218*52347f71SHasso Tepper0xA9 = 0x0E09
219*52347f71SHasso Tepper0xAA = 0x0E0A
220*52347f71SHasso Tepper0xAB = 0x0E0B
221*52347f71SHasso Tepper0xAC = 0x0E0C
222*52347f71SHasso Tepper0xAD = 0x0E0D
223*52347f71SHasso Tepper0xAE = 0x0E0E
224*52347f71SHasso Tepper0xAF = 0x0E0F
225*52347f71SHasso Tepper0xB0 = 0x0E10
226*52347f71SHasso Tepper0xB1 = 0x0E11
227*52347f71SHasso Tepper0xB2 = 0x0E12
228*52347f71SHasso Tepper0xB3 = 0x0E13
229*52347f71SHasso Tepper0xB4 = 0x0E14
230*52347f71SHasso Tepper0xB5 = 0x0E15
231*52347f71SHasso Tepper0xB6 = 0x0E16
232*52347f71SHasso Tepper0xB7 = 0x0E17
233*52347f71SHasso Tepper0xB8 = 0x0E18
234*52347f71SHasso Tepper0xB9 = 0x0E19
235*52347f71SHasso Tepper0xBA = 0x0E1A
236*52347f71SHasso Tepper0xBB = 0x0E1B
237*52347f71SHasso Tepper0xBC = 0x0E1C
238*52347f71SHasso Tepper0xBD = 0x0E1D
239*52347f71SHasso Tepper0xBE = 0x0E1E
240*52347f71SHasso Tepper0xBF = 0x0E1F
241*52347f71SHasso Tepper0xC0 = 0x0E20
242*52347f71SHasso Tepper0xC1 = 0x0E21
243*52347f71SHasso Tepper0xC2 = 0x0E22
244*52347f71SHasso Tepper0xC3 = 0x0E23
245*52347f71SHasso Tepper0xC4 = 0x0E24
246*52347f71SHasso Tepper0xC5 = 0x0E25
247*52347f71SHasso Tepper0xC6 = 0x0E26
248*52347f71SHasso Tepper0xC7 = 0x0E27
249*52347f71SHasso Tepper0xC8 = 0x0E28
250*52347f71SHasso Tepper0xC9 = 0x0E29
251*52347f71SHasso Tepper0xCA = 0x0E2A
252*52347f71SHasso Tepper0xCB = 0x0E2B
253*52347f71SHasso Tepper0xCC = 0x0E2C
254*52347f71SHasso Tepper0xCD = 0x0E2D
255*52347f71SHasso Tepper0xCE = 0x0E2E
256*52347f71SHasso Tepper0xCF = 0x0E2F
257*52347f71SHasso Tepper0xD0 = 0x0E30
258*52347f71SHasso Tepper0xD1 = 0x0E31
259*52347f71SHasso Tepper0xD2 = 0x0E32
260*52347f71SHasso Tepper0xD3 = 0x0E33
261*52347f71SHasso Tepper0xD4 = 0x0E34
262*52347f71SHasso Tepper0xD5 = 0x0E35
263*52347f71SHasso Tepper0xD6 = 0x0E36
264*52347f71SHasso Tepper0xD7 = 0x0E37
265*52347f71SHasso Tepper0xD8 = 0x0E38
266*52347f71SHasso Tepper0xD9 = 0x0E39
267*52347f71SHasso Tepper0xDA = 0x0E3A
268*52347f71SHasso Tepper0xDB = 0x2060
269*52347f71SHasso Tepper0xDC = 0x200B
270*52347f71SHasso Tepper0xDD = 0x2013
271*52347f71SHasso Tepper0xDE = 0x2014
272*52347f71SHasso Tepper0xDF = 0x0E3F
273*52347f71SHasso Tepper0xE0 = 0x0E40
274*52347f71SHasso Tepper0xE1 = 0x0E41
275*52347f71SHasso Tepper0xE2 = 0x0E42
276*52347f71SHasso Tepper0xE3 = 0x0E43
277*52347f71SHasso Tepper0xE4 = 0x0E44
278*52347f71SHasso Tepper0xE5 = 0x0E45
279*52347f71SHasso Tepper0xE6 = 0x0E46
280*52347f71SHasso Tepper0xE7 = 0x0E47
281*52347f71SHasso Tepper0xE8 = 0x0E48
282*52347f71SHasso Tepper0xE9 = 0x0E49
283*52347f71SHasso Tepper0xEA = 0x0E4A
284*52347f71SHasso Tepper0xEB = 0x0E4B
285*52347f71SHasso Tepper0xEC = 0x0E4C
286*52347f71SHasso Tepper0xED = 0x0E4D
287*52347f71SHasso Tepper0xEE = 0x2122
288*52347f71SHasso Tepper0xEF = 0x0E4F
289*52347f71SHasso Tepper0xF0 = 0x0E50
290*52347f71SHasso Tepper0xF1 = 0x0E51
291*52347f71SHasso Tepper0xF2 = 0x0E52
292*52347f71SHasso Tepper0xF3 = 0x0E53
293*52347f71SHasso Tepper0xF4 = 0x0E54
294*52347f71SHasso Tepper0xF5 = 0x0E55
295*52347f71SHasso Tepper0xF6 = 0x0E56
296*52347f71SHasso Tepper0xF7 = 0x0E57
297*52347f71SHasso Tepper0xF8 = 0x0E58
298*52347f71SHasso Tepper0xF9 = 0x0E59
299*52347f71SHasso Tepper0xFA = 0x00AE
300*52347f71SHasso Tepper0xFB = 0x00A9
301*52347f71SHasso TepperEND_MAP
302